package com.chinatsp.onlineapp.ui.violation;

import java.util.ArrayList;
import java.util.List;

import com.chinatsp.onlineapp.R;

import tsp.cn.http.tools.T;
import android.content.Context;
import android.provider.DocumentsContract.Root;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class ViolationLogAdapter extends BaseAdapter {
	
	private List<T> list = new ArrayList<T>();
	private Context mContext;
	
	public ViolationLogAdapter(Context context,List list){
		this.list = list;
		mContext = context;
	}
	

	@Override
	public int getCount() {
		
		
		return list.size() == 0?0:list.size();
	}

	@Override
	public Object getItem(int arg0) {
		
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int arg0, View arg1, ViewGroup arg2) {
		View root = LayoutInflater.from(mContext).inflate(R.layout.item_violation_log, null,false);
		
		
		return root;
	}

}
